antlr_target(TestGrammarLexer TestGrammarLexer.g4
	LEXER
	)

antlr_target(TestGrammarParser TestGrammarParser.g4
	DEPENDS_ANTLR
	TestGrammarLexer
	PARSER
	LISTENER
	VISITOR
	COMPILE_FLAGS -lib
	${ANTLR_TestGrammarLexer_OUTPUT_DIR}
	)

include_directories(${ANTLR_TestGrammarLexer_OUTPUT_DIR}) 
include_directories(${ANTLR_TestGrammarParser_OUTPUT_DIR})

add_library(antlr_generated_TestGrammar
	${ANTLR_TestGrammarLexer_CXX_OUTPUTS} 
	${ANTLR_TestGrammarParser_CXX_OUTPUTS}
	TestGrammarListener.cpp
	)

include_directories(
	${PROJECT_SOURCE_DIR}/runtime/include
	)

target_link_libraries(
	antlr_generated_TestGrammar
	PUBLIC
	antlr4_static
	)

add_executable(
	TestGrammar_exe
	Driver.cpp
)

target_link_libraries(TestGrammar_exe
	PRIVATE
	antlr_generated_TestGrammar
	basicvisitor
	logger
	uniastnode
	)

